package cc.yaomm.common.biz.enums;

import cc.yaomm.common.basic.base.SuperEnum;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * Created by XQL on 2021/6/9.
 */
@Getter
public enum ServeTypeEnum implements SuperEnum<ServeTypeEnum, String> {

    /**
     * 基础服务
     */
    BASIC("BASIC-SERVICE", "基础服务"),
    /**
     * 用户服务
     */
    USER("USER-SERVICE", "用户服务"),
    /**
     * 供应商服务
     */
    SUPPLY("SUPPLY-SERVICE", "供应商服务"),
    /**
     * 订单服务
     */
    ORDER("ORDER-SERVICE", "订单服务"),
    /**
     * 商品服务
     */
    PRODUCT("PRODUCT-SERVICE", "商品服务");

    @EnumValue
    private String value;

    private String name;

    ServeTypeEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public ServeTypeEnum[] enums() {
        return values();
    }
}
